helloApp.service('LangService', function ($translate) {

    this.changeLang = function (keyLang) {

        switch(keyLang.substr(0,2)) {
            case 'fr':
                $translate.use('fr');
                break;
            default:
                $translate.use('en');
                break;
        };
    };
});